#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:do_process3.py
# author:Jackiex
# datetime:2023/5/29 10:44
# software: PyCharm

"""
this is function  description 
"""

from multiprocessing import Process
import os
from time import sleep


def run_proc(name, age, **kwargs):
    for i in range(10):
        print('子进程运行中，name= %s,age=%d ,pid=%d...' % (name, age, os.getpid()))
        print(kwargs)
        sleep(0.2)



if __name__=='__main__':

    p = Process(target=run_proc,args=('soft',18),kwargs={"m":20})

    p.start()

    sleep(1)

    p.terminate()

